/* 
 * File:   receiver.h
 * Author: orson
 *
 * Created on 20 marzec 2009, 05:44
 */

#ifndef _RECEIVER_H
#define	_RECEIVER_H

#ifdef	__cplusplus
extern "C" {
#endif

#include <windows.h>
#include "FoICMPstruct.h"

void StartSniffing      (SOCKET Sock);
void ProcessPacket      (char* , int);
void saveFoICMPData     (ICMP_HDR* icmpheader, int size);
int  checkPacket        (ICMP_HDR* icmpheader);
void setFile            (char* fileName, int len);
void save2File          (long possition, unsigned char* buffer, int buffSize);

#ifdef	__cplusplus
}
#endif

#endif	/* _RECEIVER_H */

